package com.competition.reception.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author testjava
 * @since 2021-04-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CourseVideo对象", description="")
public class CourseVideo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "视频id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "发布视频的管理员id")
    private String managerId;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "视频播放凭证")
    private String videoSourceId;

    @ApiModelProperty(value = "视频在阿里云的文件名")
    private String videoName;

    @ApiModelProperty(value = "视频封面的图片地址")
    private String videoCoverUrl;

    @ApiModelProperty(value = "视频播放次数")
    private Long playCount;

    private String videoInfo;

    @ApiModelProperty(value = "1（true）已删除,0（false）未删除")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifiedTime;


}
